<template>
  <span>{{ courseTypeText }}</span>
</template>

<script>
export default {
  name: 'CourseType',
  props: {
    row: {
      type: Object,
      default: _ => {
        return {};
      }
    }
  },
  computed: {
    courseTypeText() {
      let txt = ''
      switch (this.row.course_type) {
        case 1:
          txt = '点播课'
          break;
        case 2:
          txt = '大班课'
          if (this.row.course_live_type == 2) {
            txt = '小班课'
          }
          break;
        case 4:
          txt = '班级课'
          break;
      }
      return txt
    }
  }
}

</script>
